//
//  QJTableView.h
//  QJWork
//
//  Created by qijia on 15/6/1.
//  Copyright (c) 2015年 高中雷. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "QJPageDelegate.h"
#import "QJDefines.h"
@protocol QJTableControlDelegate <QJPageClientDelegate>

@optional
-(void)onGoCellMove:(id)obj withControl:(id)control;


@end

@interface QJTableView : NSObject<UITableViewDataSource,UITableViewDelegate,QJPageServerDelegate,QJCellControlClientDelegate>
{

}
/**
 * 获取Cell数组
 */
@property (nonatomic,  strong) NSMutableArray *dataArray;

/**
 * 定义tableview
 */
@property (nonatomic, strong) UITableView *tableview;

@property (nonatomic, weak) id<QJTableControlDelegate> delegate;

@property (nonatomic, weak) id<QJCellControlClientDelegate> containerDelegate;

@property (nonatomic) BOOL fb_cellHeight;//yes自适应 默认no

@property (nonatomic) BOOL b_isDown;
@property (nonatomic) BOOL b_isUp;

/**
 * 是否带section 默认是NO
 */
@property (nonatomic) BOOL b_section;

/**
 * 是否滑动
 * 需要实现继承QJSwipeable
 */
@property (nonatomic,assign) BOOL b_swipeable;

//初始化
-(id)initWithTableView:(UITableView *)tableview;

/**
 * @param isDown 下拉刷新
 * @param isUp   上拉刷新
 */

-(void)goDown:(BOOL)isDown withUp:(BOOL)isUp;

/**

 * @param isDown下拉刷新
 * @param isUp  上拉刷新
 * @param beginRefreshing 进入VC中是否一开始就刷新 看需求是否需要
 */
-(void)goDown:(BOOL)isDown withUp:(BOOL)isUp beginRefreshing:(BOOL)beginRefreshing;

/***************动画刷新控件以后在添加********************/

@end
